package com.apes.auto.maintain.model;

import com.apes.framework.jpa.ApesBean;
import com.apes.framework.jpa.DefaultPersistListener;
import com.apes.framework.jpa.comment.Comment;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.SelectBeforeUpdate;

import javax.persistence.*;

/**
 * @ClassName CarTheOilDosage
 * @Description 全车油液用量
 * @Author pengyb
 * @Date 2019/8/8 16:24
 * @Version 1.0
 **/
@Getter
@Setter
@SelectBeforeUpdate
@DynamicInsert
@DynamicUpdate
@Entity
@EntityListeners(DefaultPersistListener.class)
@Table(name = CarTheOilDosage.CONST_TABLE_NAME)
public class CarTheOilDosage implements ApesBean {
    public static final String CONST_TABLE_NAME="qcyy_new";

    @Id
    @Column(name = "CXID", length = 32)
    @Comment("车型ID")
    private String CXID;

    @Column(name = "levelID", length = 32)
    @Comment("levelID")
    private String levelID;

    @Column(name = "JYBYJZL", columnDefinition = "number(6,2) default 0")
    @Comment("机油保养加注量")
    private int JYBYJZL;


    @Column(name = "FDJXH", length = 32)
    @Comment("发动机型号")
    private String FDJXH;

}
